﻿<%--通知消息设置--%>
<%@ Page Language="C#" %>

<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/icon.css"/>
	<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="../../../WebPlugin/jquery-easyui/JQueryCommon.js" type="text/javascript"></script>

    <script src="../PageJS/MessageManager.js" type="text/javascript"></script>
</head>
<body class="easyui-layout">
<%--初始化界面--%>
<div region="center" title="消息类型" style="overflow:hidden;">
    <table id="messageGrid" idField="ID">
        <thead>
            <tr>
                <th field="ID" width="80">ID</th>
                <th field="CODE" width="80">编码</th>
                <th field="NAME" width="100" >类型名称</th>
                <th field="WORKFLAG" width="100" >是否当前机构</th>
                <th field="DEPTFLAG" width="100" >是否当前科室</th>
                <th field="SENDGROUP" width="100" >发送消息角色</th>
                <th field="RECEIVEGROUP" width="100" >接收消息角色</th>
                <th field="LIMITTIME" width="100" >消息有效时间</th>
            </tr>
        </thead>
    </table>	
</div>
<%--弹出窗界面--%>
<div id="dialog-message" icon="icon-save" style="background:#fafafa;padding:10px;width:400px;height:300px;">
	 
    <form id="messageform" method="post">
    
        <table>
        <tr>
            <td><label>编码:</label></td>
            <td><input id="Code" name="Code" class="easyui-validatebox" style="width:200px;" type="text"  required="true"></input></td>
       </tr>
		<tr>
            <td><label>类型名称:</label></td>
            <td><input id="Name" name="Name" class="easyui-validatebox" style="width:200px;" type="text"  required="true"></input></td>
       </tr>
        <tr>
            <td><label>是否当前机构:</label></td>
            <td><input id="_WorkFlag" type="checkbox"/></td>
        </tr>
         <tr>
            <td><label>是否当前科室:</label></td>
            <td><input id="_DeptFlag" type="checkbox"/></td>
        </tr>
        <tr>
            <td><label>发送消息权限组:</label></td>
            <td><input id="sendgroups" class="easyui-combobox" name="sendgroups" style="width:200px;" valueField="GroupId" textField="Name" multiple="true" url="../Controller.aspx?controller=MessageController&method=GetGroupData" required="true" /></td>
        </tr>
        <tr>
            <td><label>接收消息权限组:</label></td>
            <td><input id="receivegroups" class="easyui-combobox" name="receivegroups" style="width:200px;" valueField="GroupId" textField="Name" multiple="true" url="../Controller.aspx?controller=MessageController&method=GetGroupData" required="true" /></td>
        </tr>
        <tr>
            <td><label>消息有效时间:</label></td>
            <td><input id="LimitTime_Num" name="LimitTime_Num" class="easyui-validatebox" style="width:100px;" type="text"  required="true"></input></td>
        </tr>
        <tr>
            <td></td>
            <td><input id="LimitTime_Unit" class="easyui-combobox" name="LimitTime_Unit" style="width:100px;" valueField="Id" textField="Name" url="../Controller.aspx?controller=MessageController&method=GetLimitTimeType" required="true" /></td>
        </tr>
       </table>
       <input id="Id" type="hidden" name="Id" ></input>
       <input id="WorkFlag" type="hidden" name="WorkFlag" ></input>
       <input id="DeptFlag" type="hidden" name="DeptFlag" ></input>
    </form>
</div>

</body>
</html>